﻿using Autofac;
using Lcygcc.Infrastructure.Utility.IOC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lcygcc.Application.WCF.Service
{
    public class DependencyRegistrar : IDependencyRegistrar
    {
        public int Order
        {
            get
            {
                return 1;
            }
        }

        public void Register(ContainerBuilder builder, ITypeFinder typeFinder)
        {
            builder.RegisterType<FactoryLayoutWCFService>().As<IFactoryLayoutWCFService>();
            builder.RegisterType<ProductWCFService>().As<IProductWCFService>();
            builder.RegisterType<PowerManageWCFService>().As<IPowerManageWCFService>().SingleInstance() ;
        }
    }
}
